<!--
 * @Author: your name
 * @Date: 2021-06-16 11:04:55
 * @LastEditTime: 2021-06-16 11:58:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vueDemo\03指令-文本插值.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .dv{
            width:800px;
            height:800px;
            border:1px solid black
        }
    </style>
</head>
<body>
    <div id="div">
        <!-- <div>{{msg}}</div> -->
        <div v-html="msg"></div>
        <br />
        <div :class="cls">一个div</div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
         new Vue({
            el:"#div",
            data:{
                msg:"<h1>halo vue</h1>",
                cls:"dv"
            } 
        })
    </script>
</body>
</html>